package com.dyna.constants;

/**
 * Token配置常量.
 *
 * @author Chill
 */
public interface TokenConstant {

	String AUTHORIZATION = "Authorization";
	String BEARER = "Bearer";
	String BEARER_SPACE = "Bearer ";
	String REFRESH_TOKEN = "refresh_token";
	String LOGIN_USER_HEADER = "login-user";

	String LOGIN_USER_ID_ATTR = "login-user-id";
	String LOGIN_USER_TYPE_ATTR = "login-user-type";
	String HEADER_TENANT_ID = "tenant-id";

	String TRACE_ID = "traceId";
	String USER_ID = "user_id";
	String DEPT_ID = "dept_id";
	String USER_NAME = "user_name";

	/** token过期时间 **/
	Integer TOKEN_EXPIRE_TIME = 1800;

	/** token刷新时间 **/
	Long TOKEN_REFRESH_TIME = 900L;

	/** 验证码过期时间 */
	Integer CAPTCHA_EXPIRE = 1;

	/** 登录错误过期时间 */
	Integer ERROR_EXPIRE_TIME = 24;

	/** JWT 密钥 */
	String JWT_SECRET = "dyna611";

}